package com.augurit.wf.common.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

@Entity
@Table(name = "OA_DOC_CODE")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class OaDocCode implements java.io.Serializable {
	
	// 属性
	@Id
    @Column(name = "ID")
    @SequenceGenerator(name="SEQ_OA_DOC_CODE", sequenceName="SEQ_OA_DOC_CODE", allocationSize=1)
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SEQ_OA_DOC_CODE")
	private Long id;
	
	private String template;
	
	private String word;
	
	private String year;
	
	private Long seq;
	
	private String unit;
	
	private String leakNo;
	private Long ywId;
	private String templateCode;
	public String getTemplateCode() {
        return templateCode;
    }

    public void setTemplateCode(String templateCode) {
        this.templateCode = templateCode;
    }



    public Long getYwId() {
        return ywId;
    }

    public void setYwId(Long ywId) {
        this.ywId = ywId;
    }

    public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	public String getTemplate() {
		return this.template;
	}

	public void setTemplate(String template) {
		this.template = template;
	}
	public String getWord() {
		return this.word;
	}

	public void setWord(String word) {
		this.word = word;
	}
	public String getYear() {
		return this.year;
	}

	public void setYear(String year) {
		this.year = year;
	}
	public Long getSeq() {
		return this.seq;
	}

	public void setSeq(Long seq) {
		this.seq = seq;
	}
	public String getUnit() {
		return this.unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}
	public String getLeakNo() {
		return this.leakNo;
	}

	public void setLeakNo(String leakNo) {
		this.leakNo = leakNo;
	}
}